<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" session="false" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>module</title>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/resource/css/font-awesome.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/resource/css/waybook.css">
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/resource/css/icon.css">
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/resource/css/custom.css">
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/resource/datepicker/datepicker.css" />
<script type="text/javascript" src="<%=request.getContextPath() %>/resource/js/core/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/resource/js/core/jquery.easyui.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/resource/js/core/jquery.ui.core.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/resource/js/core/jquery.ui.effect.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/resource/js/core/common.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/resource/js/core/toolkit.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/resource/js/core/validate.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/resource/datepicker/datepicker.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/resource/js/module.js"></script>
</head>
<body>
<table id="module_table"
	data-options="border:false, rownumbers:true, collapsible:true, fit:true, fitColumns:true, loadMsg:'正在加载...', 
		animate:true, singleSelect:false, idField:'itemId', treeField:'p1'">
	<thead>
		<tr>
            <th data-options="field:'ck',checkbox:true"></th>
			<th data-options="field:'itemId', hidden:true">itemId</th>
            <th data-options="field:'p1'">模块名称</th>
            <th data-options="field:'p2', align:'center'">模块类型</th>
            <th data-options="field:'p3', align:'center'">模块级别</th>
            <th data-options="field:'p4', align:'right'">模块排序</th>
            <th data-options="field:'p5'">模块地址</th>
            <th data-options="field:'addTime', align:'center', sortable:true">添加时间</th>
		</tr>
	</thead>
</table> 

<div id="module_div_add_edit" class="easyui-window" style="width:380px;height:400px;padding:5px;" 
	data-options="iconCls:'icon-add',modal:true,top:0,collapsible:false,minimizable:false,maximizable:false,closed:true">
	<div class="easyui-layout" data-options="fit:true,border:false">
        <div class="div_window_content" data-options="region:'center',border:false">
            <div class="line"><label>模块名称</label>
				<input id="module_ipt_p1" class="easyui-textbox" 
				data-options="required:true,validType:'length[2,16]',invalidMessage:'长度在2到16个字符之间。'" style="width: 250px;" /></div>
			<div class="line"><label>模块类型</label>
				<input id="module_ipt_p2" class="easyui-combobox" data-options="required:true,valueField:'value',textField:'text'" /></div>
			<div class="line"><label>模块级别</label>
				<input id="module_ipt_p3" class="easyui-combobox" data-options="required:true,valueField:'value',textField:'text'" /></div>
			<div class="line"><label>模块排序</label>
				<input id="module_ipt_p4" class="easyui-numberbox" data-options="required:true" /></div>
			<div class="line"><label>上级模块</label>
				<input id="module_ipt_p5" class="easyui-combobox" data-options="valueField:'value',textField:'text'" /></div>
			<div class="line"><label>模块地址</label>
				<input id="module_ipt_p6" class="easyui-textbox" data-options="validType:'length[0,120]',invalidMessage:'长度不能超过100个字符。'" style="width: 250px;" /></div>
        </div>
        <div class="div_window_foot" data-options="region:'south',border:false">
            <a class="easyui-linkbutton" data-options="iconCls:'icon-reset'" onclick="jsModule.resetSaveOrEdit();" style="width:80px">重置</a>
            <a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" onclick="jsModule.saveOrEdit($(this));" style="width:80px">确定</a>
        </div>
    </div>
</div>
<script type="text/javascript">
var jsModule = new JS_MODULE();
jsModule.getPage();
</script>

</body>
</html>



